package za.org.jcicada.genss.sensor.impl;

import za.org.jcicada.genss.sensor.ISensorType;
import za.org.jcicada.genss.sensor.IStatusStrategy;
import za.org.jcicada.genss.sensor.SensorStatus;

/**
 * Default status strategy works for any sensor type and sets the status to
 * UNKNOWN.
 * @author rcrida
 */
public class StatusStrategyUnknown implements IStatusStrategy {

	private static StatusStrategyUnknown instance = new StatusStrategyUnknown();
	
	public static StatusStrategyUnknown getInstance() {
		return instance;
	}
	
	private StatusStrategyUnknown() {
	}
	
	public SensorStatus getStatus(Object value) throws InvalidSensorValue {
		return SensorStatus.UNKNOWN;
	}

	public boolean isValidSensorType(ISensorType sensorType) {
		return true;
	}

}
